package edcom.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;

public class FileUploadArea {

	public FileUploadArea() {
		
	}
	
	public FileUploadArea(RootPanel fileUploadArea) {
		
		Button fileUploadButton = new Button("Upload");
		fileUploadButton.setStyleName("gwt-ButtonEXT");
		fileUploadButton.addClickHandler(new ClickHandler() {
			
			@Override
			public void onClick(ClickEvent event) {
				new FileUploadBox().center();  
				
				
			}
		});
		
		fileUploadArea.add(fileUploadButton);
		
		
		
	}
}
